package com.platform.server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.platform.server.entity.AppealComplaint;
import com.platform.server.service.AppealComplaintService;


@Controller
@RequestMapping("/appealComplaint")
public class AppealComplaintController {
	
		@Autowired
	    private AppealComplaintService appealComplaintService;

		 /**
	     * 申诉/投诉 
	     */
	    @ResponseBody
	    @RequestMapping(value = "/addAppealComplaint", method = RequestMethod.POST)
	    public Object bindingBank(AppealComplaint appealComplaint) {
	        return appealComplaintService.addAppealComplaint(appealComplaint);
	    }
	    
		 /**
	     * 申诉/投诉订单详情
	     */
	    @ResponseBody
	    @RequestMapping(value = "/getAppealComplaintDetail", method = RequestMethod.POST)
	    public Object getAppealComplaintDetail(AppealComplaint appealComplaint) {
	        return appealComplaintService.selectAppealComplaintDetail(appealComplaint);
	    }

		 /**
	     * 申诉/投诉列表
	     */
	    @ResponseBody
	    @RequestMapping(value = "/getAppealComplaintList", method = RequestMethod.POST)
	    public Object getAppealComplaintList(AppealComplaint appealComplaint) {
	        return appealComplaintService.selectAppealComplaintList(appealComplaint);
	    }
}
